#coding:utf-8
import sys
import os
from com.android.monkeyrunner import MonkeyRunner as mr
from com.android.monkeyrunner import MonkeyDevice as md
from com.android.monkeyrunner import MonkeyImage  as mi

#device=mr.waitForConnection(10,"611DKBQB235WN")  #MZ007
device=mr.waitForConnection(10,"611DKBQC22573")  #MZ002

'''
imgName="m7"

device.startActivity(component="com.shenghe.wzcq.mz/.FirstActivity")
mr.sleep(2)
re=device.takeSnapshot();
re.writeToFile("E:\\py\\"+imgName+".png","png");
'''
code1=os.popen('E:\\py\\ocr.py')


a=code1.read()
print(a)
